Skip to content

Conversation

@Efcolipt
Copy link
Collaborator

No description provided.

throw new Error(str);
}

private isDate(val: any) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

метод называется Is Date, по идее должен проверять является ли значение датой, но это пропустит не валидную дату. Например new Date("ержан") вернет true. Если это используется только для сужения типов, то лучше вынести из класса.

* Upgrade QueryBuilder to class with methods, or just request types
* Pass types to each service for QueryBuilder
query.append(key, this.fixedEncodeURIComponent(String(val)));
};
switch (queryBuilderField) {
case QueryBuilderFields.$ne:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вынеси в отдельный приватный метод весь switch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants